import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/sys/setting/columnssetting/` + url, ...arg)

/**
 * 列设置表Api接口管理器
 *
 * @author Mr.wu
 * @date  2025/04/02 23:05
 **/
export default {
	// 获取列设置表分页
	sysColumnsSettingPage(data) {
		return request('page', data, 'get')
	},
	// 提交列设置表表单 edit为true时为编辑，默认为新增
	sysColumnsSettingSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除列设置表
	sysColumnsSettingDelete(data) {
		return request('delete', data)
	},
	// 获取列设置表详情
	sysColumnsSettingDetail(data) {
		return request('detail', data, 'get')
	}
}
